const express = require('express')

const app = express()

app.all('/serverAll',(request,response)=>{
    //设置响应头  设置允许跨域
    response.setHeader('Access-Control-Allow-Origin', '*');
    //响应头
    response.setHeader('Access-Control-Allow-Headers', '*');
    response.send('All')
})

app.listen('8000',()=>{
    console.log('启动serverAll')
})

